package ecoll.client.database;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import ecoll.client.dictionary.Definition;

@RemoteServiceRelativePath("database")
public interface DatabaseService extends RemoteService {

	public ProfileData getProfileData(String login) throws RuntimeException;

	public ArrayList<ProfileData> findProfileData(ProfileData profileData)
			throws RuntimeException;

	public void updateProfileData(ProfileData profileData);

	public ArrayList<News> getNews() throws IllegalArgumentException;

	public void putNews(String news);

	public ArrayList<Definition> getDefinitions(long fileId)
			throws RuntimeException;

	public void putDefinitions(ArrayList<Definition> definitions, long id)
			throws RuntimeException;

	public ArrayList<File> getFiles();

	public void shareFile(long fileId, String user, String rights)
			throws RuntimeException;

	public String getBlobUrl(String directory);
}
